GtkRecentManager: Survive without a filename
authorMatthias Clasen <mclasen@redhat.com>
Mon, 22 Dec 2014 13:21:50 +0000 (08:21 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 22 Dec 2014 13:24:13 +0000 (08:24 -0500)
commitea36b7bfb0c01acaaf348e6b42fcb73da0f8a677
tree698b19644291f09f19288a2c661fa697cf8a7c3c
parent84b0b454655024fe3319f6b48940123e794f0a16
GtkRecentManager: Survive without a filename

We were asserting priv->filename != NULL in various places,
which leads to apps refusing to work when HOME is set to a
nonexisting or nonwritable value. Since it isn't hard, just
make GtkRecentManager survive without a filename. We won't
save or read any recently used files in this state, but
thats ok.
https://bugzilla.gnome.org/show_bug.cgi?id=739038
gtk/gtkrecentmanager.c